package com.lc.qianrenshiye.dialog;

import android.content.Context;
import android.view.View;

import com.lc.qianrenshiye.R;

/**
 * Created by shenyuxin on 2016/11/17.
 */
public abstract class LogoutDialog extends BaseDialog {

    public LogoutDialog(Context context) {
        super(context);

        setContentView(R.layout.dialog_logout);

        View.OnClickListener listener = new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                switch (v.getId()) {

                    case R.id.dialog_logout_sure_tv:

                        onConfirm();

                        break;
                }

                dismiss();

            }
        };

        findViewById(R.id.dialog_logout_sure_tv).setOnClickListener(listener);
        findViewById(R.id.dialog_logout_cancle_tv).setOnClickListener(listener);

    }

    public abstract void onConfirm();

}
